/* 登录页面样式 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    padding: 40px 30px;
}

/* 头部Logo区域 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 48px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.app-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}



/* 登录表单 */
.login-form {
    margin-top: 20px;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    background: #000;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    padding: 0 15px;
    font-size: 18px;
    color: #666;
}

.input-wrapper input {
    flex: 1;
    padding: 15px 15px 15px 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #fff;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-wrapper input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-error {
    border-color: #ff4757 !important;
    background: #fff5f5 !important;
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 15px;
}

/* 密码显示切换 */
.password-toggle {
    background: none;
    border: none;
    padding: 0 15px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 发送验证码按钮 */
.send-code-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 8px;
}

.send-code-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.forgot-password {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a6fd8;
}

.forgot-password:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 登录按钮 */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-button.loading {
    background: #ccc;
}

/* 加载动画 */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 其他登录方式 */
.other-login {
    margin-bottom: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 12px;
}

.social-login {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.social-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.social-btn.wechat:hover:not(:disabled) {
    border-color: #07c160;
    color: #07c160;
}

.social-btn.phone:hover:not(:disabled) {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* 注册链接 */
.register-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-link button {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.register-link button:hover:not(:disabled) {
    color: #5a6fd8;
}

.register-link button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .app-title {
        font-size: 24px;
    }

    .social-login {
        flex-direction: column;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: #1a1a1a;
        color: white;
    }

    .app-title {
        color: white;
    }

    .app-subtitle {
        color: #ccc;
    }

    .login-title {
        color: white;
    }

    .input-wrapper {
        background: #2a2a2a;
    }

    .input-wrapper input {
        color: white;
    }

    .input-wrapper input::placeholder {
        color: #888;
    }

    .remember-me {
        color: #ccc;
    }

    .divider span {
        background: #1a1a1a;
        color: #ccc;
    }

    .social-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }

    .register-link {
        color: #ccc;
    }
}